Make /proc/xen/xsd_kva with permissions 0600 so it can be opened
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 6 Mar 2006 18:47:26 +0000 (19:47 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 6 Mar 2006 18:47:26 +0000 (19:47 +0100)
for write access (and mmap()ed with write permissions).

Signed-off-by: Chris Wright <chrisw@sous-sol.org>
linux-2.6-xen-sparse/drivers/xen/xenbus/xenbus_probe.c

index d43f9fb84dea3ffb448f3acaf91193c0b210e001..c8671dbeb79e77b0a01043c98cf17b70247aee5b 100644 (file)
@@ -1039,7 +1039,7 @@ static int __init xenbus_probe_init(void)
                xen_start_info->store_evtchn = op.u.alloc_unbound.port;
 
                /* And finally publish the above info in /proc/xen */
-               xsd_kva_intf = create_xen_proc_entry("xsd_kva", 0400);
+               xsd_kva_intf = create_xen_proc_entry("xsd_kva", 0600);
                if (xsd_kva_intf) {
                        memcpy(&xsd_kva_fops, xsd_kva_intf->proc_fops,
                               sizeof(xsd_kva_fops));